package com.dwxt.community.dao;

import com.dwxt.community.aiequipment.sellmachine.entity.SellMachineAisle;
import com.dwxt.community.aiequipment.sellmachine.entity.SellMachineAisleExample;

import java.util.*;

import org.apache.ibatis.annotations.Param;

public interface SellMachineAisleMapper {
    int countByExample(SellMachineAisleExample example);

    int deleteByExample(SellMachineAisleExample example);

    int deleteByPrimaryKey(String aisleId);

    int insert(SellMachineAisle record);

    int insertSelective(SellMachineAisle record);

    List<SellMachineAisle> selectByExample(SellMachineAisleExample example);

    SellMachineAisle selectByPrimaryKey(String aisleId);

    int updateByExampleSelective(@Param("record") SellMachineAisle record, @Param("example") SellMachineAisleExample example);

    int updateByExample(@Param("record") SellMachineAisle record, @Param("example") SellMachineAisleExample example);

    int updateByPrimaryKeySelective(SellMachineAisle record);

    int updateByPrimaryKey(SellMachineAisle record);

    List<SellMachineAisle> selectAisleInfo(@Param("deviceId")String deviceId, @Param("aisle")Integer aisle);

    List<SellMachineAisle> selectAll();

    List<SellMachineAisle> selectUsableAisle(String deviceId);

    List<SellMachineAisle> selectAisleByMachineId(String machineId);

    SellMachineAisle sellMachineAisleDetail(String aisleId);

    int emptyGoodsByAisleId(String aisleId);

    int countByAisleGoodsId(String goodsId);

    int selectAisleNoCountByMachineId(@Param("machineId") String machineId,
                                      @Param("aisleNo") Integer aisleNo,
                                      @Param("aisleId") String aisleId);

    Integer countByDeviceId(String deviceId);

    int batchInsert(@Param("sellMachineAisles") List<SellMachineAisle> sellMachineAisles);
}